
/**
 * 操作符
 */
export const operates = [
  { name: "大于", value: ">", enable: ["RANGE"] },
  { name: "大于等于", value: ">=", enable: ["RANGE"] },
  { name: "等于", value: "==", enable: ["EQUALS","RANGE"] },
  { name: "小于等于", value: "<=", enable: ["RANGE"] },
  { name: "小于", value: "<", enable: ["RANGE"] },
  { name: "包含", value:"in", enable: ["CONTAIN_EQUALS"]},
  { name: "不包含", value:"notin", enable: ["CONTAIN_EQUALS"]}
]

/**
 * 表达式连接符
 */
export const links = {
  relation: {
    first: [
      { name: "空置", value: " " }
    ],
    normal: [
      { name: "并且", value: "&&" },
      { name: "或者", value: "||" }
    ],
  },
  bracket: {
    left: [
      { name: "(", value: "(" },
      { name: "((", value: "((" }
    ],
    right: [
      { name: ")", value: ")" },
      { name: "))", value: "))" }
    ]
  }
}
export interface FormItem {
  /**
   * 剔除渠道
   */
  channel: string,
  /**
   * 有效日期
   */  
  expiryDate:string,
}

/**
 * 表达式接口
 */
export interface IstrategyInfo {
  /**
   * 链接关系
   */
  relation: string,
  /**
   * 字段
   */
  variable: string,
  /**
   * 操作符
   */
  symbol: string,
  /**
   * 期望值
   */
  value: string,
  /**
   * 左括号
   */
  leftBracket: string,
  /**
   * 右括号
   */
  rightBracket: string,
  /**
   * 级联选择结果
   */
  cascaderValue?: string[]
  /**
   * 操作类型
   */
  operateType?: string
}